include:
  - localdev
  - git.baas

Prepare directory for Baas Code destination:
  file.directory:
    - name: /var/www/seekasia.com/baas
    - makedirs: True

Git Clone local dev Baas Code:
  git.latest:
    - name: git@github.com:seekasia/baas.git
    - target: /var/www/seekasia.com/baas
    - identity: /tmp/cijs_rsa
    - unless: test -d /var/www/seekasia.com/baas/.git

Prepare symlink for Baas web path:
  file.symlink:
    - name: /var/www/html/pitaya
    - target: /var/www/seekasia.com/baas
